import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Van from 'vant'
import 'vant/lib/index.css';
import {Grid, GridItem} from 'vant';
import {Button, Form, Field, CellGroup, Toast, Notify, Search, Tab, Tabs} from 'vant' //组件注册
import {Dialog} from 'vant';
// 引入轮播图
import {Lazyload} from "vant";
// 引入list列表
import {List} from "vant";
import {ActionSheet} from "vant";
//选择器
import {Picker} from 'vant';
//图片样式
import { Image as VanImage } from 'vant';

Vue.use(Van)
//组件使用
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Button)
Vue.use(Form)
Vue.use(Field)
Vue.use(CellGroup)
Vue.use(Toast)
Vue.use(Search);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Notify);
Vue.use(Dialog);
//动作面板
Vue.use(ActionSheet);
//使用懒加载
Vue.use(Lazyload);
//使用list集合
Vue.use(List);
//选择器
Vue.use(Picker)
Vue.use(VanImage)

Vue.config.productionTip = false
//导入axios
import request from "@/utils/request";
//把axios挂载到Vue对象
Vue.prototype.$http = request;
new Vue({
    router,
    render: h => h(App)
}).$mount('#app')
